import request from '@/common/request'

// 添加/修改平台
export function setLoose(data) {
  return request({
    url: '/apiqywx/loose/set',
    method: 'post',
	data:data
  })
}

// 删除平台
export function delLoose(data) {
  return request({
    url: '/apiqywx/loose/del',
    method: 'post',
	data:data
  })
}

// 平台列表
export function getLooseList(data) {
    return request({
        url: '/apiqywx/loose/list',
        method: 'post',
        data:data
    })
}

//订单平台下拉列表
export function getSelectPlatform(data) {
    return request({
        url: '/apiqywx/loose/select/platform',
        method: 'get',
        params:data
    })
}
//

//分组下拉列表
export function getGroupPlatform(data) {
    return request({
        url: '/apiqywx/loose/select/group/platform',
        method: 'get',
        params:data
    })
}

export function getUserPlatform(data) {
    return request({
        url: '/apiqywx/loose/select/user/platform',
        method: 'get',
        params:data
    })
}

// 添加/修改助教
export function setTeacher(params) {
    return request({
        url: '/apiqywx/loose/teacher/set',
        method: 'post',
        params
    })
}

// 删除助教
export function delTeacher(data) {
    return request({
        url: '/apiqywx/loose/teacher/del',
        method: 'post',
        data:data
    })
}

// 助教列表
export function getTeacherList(data) {
    return request({
        url: '/apiqywx/loose/teacher/list',
        method: 'post',
        data:data
    })
}

// 添加/修改活码
export function setCode(params) {
    return request({
        url: '/apiqywx/loose/code/set',
        method: 'post',
        params
    })
}

// 删除活码
export function delCode(data) {
    return request({
        url: '/apiqywx/loose/code/del',
        method: 'post',
        data:data
    })
}

// 活码列表
export function getCodeList(data) {
    return request({
        url: '/apiqywx/loose/code/list',
        method: 'post',
        data:data
    })
}

// 添加/修改分组
export function setGroup(params) {
    return request({
        url: '/apiqywx/loose/group/set',
        method: 'post',
        params
    })
}

// 删除分组
export function delGroup(data) {
    return request({
        url: '/apiqywx/loose/group/del',
        method: 'post',
        data:data
    })
}

// 分组列表
export function getGroupList(data) {
    return request({
        url: '/apiqywx/loose/group/list',
        method: 'post',
        data:data
    })
}

